permutation not sitting together in a row